home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_06
/
1006090a
< prev
next >
Wrap
Text File
|
1991-09-08
|
474b
|
32 lines
/* LISTING 4 */
#include <stdlib.h>
static double c[200];
f4()
{
double a[200];
double *b;
b = (double *)malloc(200 * sizeof(double));
f4sub1(c,b,a,200);
f4sub2(c+1,c,a,200);
}
f4sub1(double *p, double *q, double *r, int n)
{
int i;
for( i=0; i<200; ++i )
*p++ = *q++ / *r++;
}
f4sub2(double *p, double *q, double *r, int n)
{
int i;
for( i=0; i<200; ++i )
*p++ = *q++ / *r++;
}